﻿using System;
using System.Linq.Expressions;

namespace LearnCSharp.SqlMap.Extension
{
    public static class DatabaseInfoExtensions
    {
        public static FieldInfo GetColumnInfo<T>(this T instance, Expression<Func<T, dynamic>> fieldSelector) where T : class, new()
        {
            return TableInfoContainer.Instance.GetColumn<T>(fieldSelector);
        }

    }
}
